package com.flyou.ccnucenter.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.flyou.ccnucenter.R;

import java.util.List;

/**
 * ============================================================
 * 项目名称：HenuCenterPro
 * 包名称：com.flyou.henucenter.adapter
 * 文件名：LoveHeadViewAdapter
 * 类描述：
 * 创建人：flyou
 * 邮箱：fangjaylong@gmail.com
 * 创建时间：2016/1/17 14:41
 * 修改备注：
 * 版本：@version  V1.0
 * ============================================================
 **/
public class LoveHeadViewAdapter extends  SimpleBaseAdapter {
    public LoveHeadViewAdapter(Context context, List<Integer> data) {
        super(context, data);
    }

    @Override
    public int getItemResource() {
        return R.layout.view_love_headimage_item;
    }

    @Override
    public View getItemView(int position, View convertView, ViewHolder holder) {
      ImageView headview= (ImageView) holder.getView(R.id.headview);
        headview.setImageResource((int)getItem(position));
        return convertView;
    }
}
